package cn.getech.data.metadata.factory;

import cn.getech.data.metadata.fallback.SecurityDataFallback;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @ClassName SystemUserFallbackFactory
 * @Description TODO
 * @Author Getech
 * @Date 2020/12/25 15:36
 */
@Component
public class SecurityDataFallbackFactory implements FallbackFactory<SecurityDataFallback> {

    @Override
    public SecurityDataFallback create(Throwable throwable) {
        return new SecurityDataFallback(throwable);
    }
}
